import http from "@/api";

import { ModuleFlexJobUrl } from "..";
import { DealerJobAbnormalVo, DealerJobAbnormalEntity, DealerJobAbnormalCntVo } from "@/biz/interface/modules/DealerType";
import { ResPage } from "@/api/interface";

const moduleUrl = ModuleFlexJobUrl;

// * 获取订单表列表
export const getDealerJobAbnormalVoListApi = (params: {}) => {
  return http.post<ResPage<DealerJobAbnormalVo>>(moduleUrl + `/dealabnormalapi/abnormals`, params);
};

// * 获取订单表列表
export const getDealerJobAbnormalCntVoListApi = (params: {}) => {
  return http.post<DealerJobAbnormalCntVo>(moduleUrl + `/dealabnormalapi/abnormalscnt`, params);
};

// * 详情接口
export const getDealerJobAbnormalApi = (params: {}) => {
  return http.post<DealerJobAbnormalEntity>(moduleUrl + `/dealapi/basicinfo`, params);
};

// * 处理异议
export const handleJobAbnormalByDealer = (param: { id: string }) => {
  return http.post(moduleUrl + `/dealjobapi/aduitp`, param);
};
